.class Lcom/nemustech/regina/ElementReginaWidget$17;
.super Ljava/lang/Object;
.source "ElementReginaWidget.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ElementReginaWidget;->morphWidget(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ElementReginaWidget;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ElementReginaWidget;)V
    .locals 0
    .parameter

    .prologue
    .line 1447
    iput-object p1, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onEffectFinish(Lcom/nemustech/tiffany/world/TFObject;)V
    .locals 7
    .parameter "object"

    .prologue
    .line 1450
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-static {v2}, Lcom/nemustech/regina/ElementReginaWidget;->access$1500(Lcom/nemustech/regina/ElementReginaWidget;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 1452
    .local v0, centerBitmap:Landroid/graphics/Bitmap;
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v2

    if-gtz v2, :cond_1

    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementReginaWidget;->getRowNum()I

    move-result v2

    move v1, v2

    .line 1453
    .local v1, centerRowNum:I
    :goto_0
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v3, v3, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v4, v4, Lcom/nemustech/regina/ElementReginaWidget;->mOneRow2DHeight:I

    mul-int/2addr v4, v1

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v3

    iput v3, v2, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    .line 1455
    const-string v2, "ElementReginaWidget"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "[morphWidget()] ####### getPrefRowNum()="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v4}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ", centerRowNum="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    invoke-static {v2, v3, v4}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 1456
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v3, v3, Lcom/nemustech/regina/ElementReginaWidget;->mContext:Landroid/content/Context;

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v4, v4, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    invoke-static {v3, v4}, Lcom/nemustech/regina/RUtils;->convertTo2DSize(Landroid/content/Context;F)I

    move-result v3

    iput v3, v2, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    .line 1457
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v2, v2, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v3, 0x0

    invoke-virtual {v2, v3, v0}, Lcom/nemustech/tiffany/world/TFPanel;->setImageResource(ILandroid/graphics/Bitmap;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 1458
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 1461
    :cond_0
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v2, v2, Lcom/nemustech/regina/ElementReginaWidget;->mCenterPanel:Lcom/nemustech/tiffany/world/TFPanel;

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v3, v3, Lcom/nemustech/regina/ElementReginaWidget;->mWidget3DWidth:F

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v4, v4, Lcom/nemustech/regina/ElementReginaWidget;->mCenter3DHeight:F

    const-wide/16 v5, 0x12c

    invoke-virtual {v2, v3, v4, v5, v6}, Lcom/nemustech/tiffany/world/TFPanel;->morph(FFJ)V

    .line 1464
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v3, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v3, v3, Lcom/nemustech/regina/ElementReginaWidget;->mTitle2DHeight:I

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v4, v4, Lcom/nemustech/regina/ElementReginaWidget;->mCenter2DHeight:I

    add-int/2addr v3, v4

    iget-object v4, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget v4, v4, Lcom/nemustech/regina/ElementReginaWidget;->mBottom2DHeight:I

    add-int/2addr v3, v4

    invoke-virtual {v2, v3}, Lcom/nemustech/regina/ElementReginaWidget;->setHeight2D(I)V

    .line 1465
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    iget-object v2, v2, Lcom/nemustech/regina/ElementReginaWidget;->mFrontCenterItemPanel:Lcom/nemustech/tiffany/world/TFPanel;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lcom/nemustech/tiffany/world/TFPanel;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 1466
    return-void

    .line 1452
    .end local v1           #centerRowNum:I
    :cond_1
    iget-object v2, p0, Lcom/nemustech/regina/ElementReginaWidget$17;->this$0:Lcom/nemustech/regina/ElementReginaWidget;

    invoke-virtual {v2}, Lcom/nemustech/regina/ElementReginaWidget;->getPrefRowNum()I

    move-result v2

    move v1, v2

    goto/16 :goto_0
.end method
